package org.yscz.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.ToString;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * 题目因子关联表
 * @author achen
 * @create 2021-10-09 15:50
 */
@Data
@ToString
@Accessors(chain = true)
@TableName(value = "t_question_factor")
public class QuestionFactor implements Serializable {
    /**
     * 算法ID
     */
    @TableId(value = "question_factor_id", type = IdType.AUTO)
    private Long questionFactorId;

    /**
     * 题目ID
     */
    @TableField(value = "question_id")
    private Long questionId;

    /**
     * 因子ID
     */
    @TableField(value = "factor_id")
    private Long factorId;
}
